package com.blyat.xsoft.gateway.restful.service.impl;

import com.blyat.xsoft.gateway.restful.entity.Router;
import com.blyat.xsoft.gateway.restful.mapper.RouterMapper;
import com.blyat.xsoft.gateway.restful.service.RouterService;
import com.blyat.xsoft.gateway.ribbon.router.AuthenticateRouteService;
import com.blyat.xsoft.gateway.ribbon.router.database.XSoftRouterService;
import com.blyat.xsoft.kernel.restful.service.CrudService;
import com.google.common.collect.Lists;
import org.springframework.stereotype.Service;

import javax.annotation.PostConstruct;
import java.util.List;
import java.util.UUID;

/**
 * @Auther: syh
 * @Date: 2020/9/2
 * @Description:
 */
@Service
public class RouterServiceImpl extends CrudService<Router, RouterMapper> implements RouterService, AuthenticateRouteService, XSoftRouterService {

    @Override
    public List<Router> getAvailableRouters() {
        return mapper.getAvailableRouters();
    }

    @Override
    public List<String> getAuthenticatePath() {
        return mapper.getAuthenticatePath();
    }
}
